import Mock from 'mockjs'

import userAPI from './user'
import dataAPI from './data'
import gameDataAPI from "./gamedata"
import activityAPI from "./activitydata"
import dataCenterAPI from "./dataCenter"
import serviceAPI from "./servicedata";
import giftAPI from "./giftdata";
import infoAPI from "./infodata"
import eventAPI from "./eventmanage";

// 设置全局延时 没有延时的话有时候会检测不到数据变化 建议保留
Mock.setup({
    timeout: '300-600'
});

// 列表相关
Mock.mock(/\/order\/reject/, 'get', dataAPI.getrejectData)
Mock.mock(/\/order\/audited/, 'get', dataAPI.getauditedData)
Mock.mock(/\/order\/checked/, 'get', dataAPI.getcheckedData)
Mock.mock(/\/order\/unGrantList/, 'get', dataAPI.getextendData)
Mock.mock(/\/order\/remarkAuditList/, 'get', dataAPI.remarkAuditList)

Mock.mock(/\/order\/giveOutInline/, 'get', dataAPI.giveOutInline)
Mock.mock(/\/order\/onekeyExtend/, 'get', dataAPI.onekeyExtend)
Mock.mock(/\/order\/onekeyPass/, 'get', dataAPI.onekeyPass)
Mock.mock(/\/order\/rejectInline/, 'get', dataAPI.rejectInline)
Mock.mock(/\/order\/passInline/, 'get', dataAPI.passInline)
Mock.mock(/\/order\/showrebateDetail/, 'get', dataAPI.showrebateDetail)
Mock.mock(/\/order\/remarkOrderPassBatch/, 'get', dataAPI.remarkOrderPassBatch)
Mock.mock(/\/order\/remarkOrderPass/, 'get', dataAPI.remarkOrderPass)
Mock.mock(/\/order\/auditRemarkModify/, 'get', dataAPI.auditRemarkModify)
Mock.mock(/\/order\/memRemarkModify/, 'get', dataAPI.memRemarkModify)

// user相关
Mock.mock(/\/user\/login/, 'post', userAPI.login)
Mock.mock(/\/user\/logOut/, 'get', userAPI.logOut)
Mock.mock(/\/user\/info/, 'post', userAPI.getUserInfo)
Mock.mock(/\/gameList/, 'get', dataAPI.getgameName)


// 游戏管理
Mock.mock(/\/gameManage\/list/,"get", gameDataAPI.getgameList)
Mock.mock(/\/gameManage\/cpGameName/,"get", gameDataAPI.getsearchList)
Mock.mock(/\/gameManage\/addpromtoVideo/,"get", gameDataAPI.addpromtoVideo)
Mock.mock(/\/gameManage\/addgame/,"get", gameDataAPI.addgame)
Mock.mock(/\/gameManage\/edit/,"get", gameDataAPI.getEditgameList)
Mock.mock(/\/gameManage\/submitEditform/,"get", gameDataAPI.submitEditForm)
Mock.mock(/\/gameManage\/cpRelationGameList/,"get", gameDataAPI.getlinkgame)
Mock.mock(/\/gameManage\/submitAudit/,"get", gameDataAPI.submitAudit)

// 活动管理
Mock.mock(/\/activityManage\/activityList/,"post", activityAPI.getActivityList)
Mock.mock(/\/activityManage\/getSearchList/,"get", activityAPI.getSearchList)
Mock.mock(/\/activityManage\/activityDetail/,"get", activityAPI.getActivityDetail)
Mock.mock(/\/activityManage\/activityCouponSupply/,"get", activityAPI.getActivityCouponSupply)
Mock.mock(/\/activityManage\/modifyActivityTime/,"get", activityAPI.getActivityCouponSupply)
Mock.mock(/\/activityManage\/getAddactData/,"get", activityAPI.getAddactData)
Mock.mock(/\/activityManage\/submitAddactivity/,"post", activityAPI.submitAddactivity)
Mock.mock(/\/activityManage\/add/,"get", activityAPI.getActivityList)
Mock.mock(/\/activityManage\/activityOnline/,"get", activityAPI.activityOnline)
Mock.mock(/\/activityManage\/activityOffline/,"get", activityAPI.activityOffline)

// 数据中心
Mock.mock(/\/dataCenter\/cpGameName/,"get", dataCenterAPI.getsearchList)
Mock.mock(/\/dataCenter\/getCouponList/,"get", dataCenterAPI.getCouponList)






// 开服管理
Mock.mock(/\/openService\/serviceList/,"post", serviceAPI.getserviceList)
Mock.mock(/\/openService\/searchList/,"get", serviceAPI.getsearchList)
Mock.mock(/\/openService\/addservice/,"get", serviceAPI.addservice)

// 礼包管理
Mock.mock(/\/gift\/List/,"get", giftAPI.getGiftList);
Mock.mock(/\/gift\/edit/,"get", giftAPI.getEdit)


// 资讯管理
Mock.mock(/\/infoManage\/getInfoList/,"post", infoAPI.getInfoList)

// 活动管理

Mock.mock(/\/eventManage\/eventList/,"post", eventAPI.getEventList)
Mock.mock(/\/eventManage\/showDetail/,"get", eventAPI.showDetail)

Mock.mock(/\/eventManage\/getApplyList/,"post", eventAPI.getApplyList)

Mock.mock(/\/eventManage\/getRemarkList/,"post", eventAPI.getRemarkList)
